package wf.dto.geoacr;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import wf.dto.georef.*;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedNativeQueries;
import javax.persistence.NamedNativeQuery;
//import org.hibernate.annotations.NamedNativeQueries;
//import org.hibernate.annotations.NamedNativeQuery;

/**
 *
 * @author Rómulo Galindo Tanta
 */
@Entity
@NamedNativeQueries({
    @NamedNativeQuery(
            name = "zongeo.pfnuepun",
            query = "select * from zongeo.pfnuepun(:p_co_zongeo, :p_nu_geolat, :p_nu_geolon)",
            resultClass = PungeoDto.class),
    @NamedNativeQuery(
            name = "zongeo.pflispun",
            query = "select * from zongeo.pflispun(:p_co_zongeo)",
            resultClass = PungeoDto.class),
    @NamedNativeQuery(
            name = "zongeo.pfactpun",
            query = "select * from zongeo.pfactpun(:p_co_zongeo, :p_co_pungeo, :p_nu_geolat, :p_nu_geolon)",
            resultClass = PungeoDto.class),
    @NamedNativeQuery(
            name = "zongeo.pfborpun",
            query = "select * from zongeo.pfborpun(:p_co_zongeo, :p_co_pungeo)",
            resultClass = pfborpun.class),
    @NamedNativeQuery(
            name = "zongeo.pflispunare",
            query = "select * from zongeo.pflispunare(:p_ti_zongeo)",
            resultClass = PungeoDto.class)
})
//
public class PungeoDto implements Serializable {

    private short or_pungeo;
    private int co_zongeo;
    private int co_pungeo;
    private double nu_geolat;
    private double nu_geolon;

    public PungeoDto() {
    }

    @Id
    @Column(name = "or_pungeo")
    public short getOr_pungeo() {
        return or_pungeo;
    }

    public void setOr_pungeo(short or_pungeo) {
        this.or_pungeo = or_pungeo;
    }

    @Column(name = "co_zongeo")
    public int getCo_zongeo() {
        return co_zongeo;
    }

    public void setCo_zongeo(int co_zongeo) {
        this.co_zongeo = co_zongeo;
    }

    @Column(name = "co_pungeo")
    public int getCo_pungeo() {
        return co_pungeo;
    }

    public void setCo_pungeo(int co_pungeo) {
        this.co_pungeo = co_pungeo;
    }

    @Column(name = "nu_geolat")
    public double getNu_geolat() {
        return nu_geolat;
    }

    public void setNu_geolat(double nu_geolat) {
        this.nu_geolat = nu_geolat;
    }

    @Column(name = "nu_geolon")
    public double getNu_geolon() {
        return nu_geolon;
    }

    public void setNu_geolon(double nu_geolon) {
        this.nu_geolon = nu_geolon;
    }
}
